Assignemnt #11 and Eighth Program

Code

   ///  Name: Derrick Andreasen
/// period: 7
/// Program name: Eighth program
/// File name: EightProg.java
/// Date finished:9/11/2015
public class EightProg
{
        public static void main( String[] args )
        {
        
                //This line will print "I will now count my chikens"
                System.out.println( "I will now count my chikens:" );
                //This line will print "Hens 30"
                System.out.println( "Hens " + (25.0 + 30.0/ 6.0 ) );
                //This line will print "Roosters 78" 
                System.out.println( "Roosters " + ( 100.0 - 25.0 + 3.0 % 4.0) );
                //This line will print "Now I will count my eggs"
                System.out.println( "Now I will count my eggs:" );
                //This line will print "7"
                System.out.println( 3.0 + 2.0 + 1.0 -5.0 + 4.0 % 2.0- 1.0 / 4.0+ 6.0 );
                //This line will print "Is it true that 3 + 2 < 5 - 7"
                System.out.println( "Is it true that 3.0 + 2.0 < 5.0 - 7.0?" );
                //This line will print "false"
                System.out.println( 3.0 + 2.0 <5.0 - 7.0 );
                //This line will print "What is 3 + 2? 5"
                System.out.println( "What is 3 + 2? " + ( 3.0 + 2.0 ) );
                //This line will print "What is 5-7? -2"
                System.out.println( "What is 5 - 7? " + ( 5.0-7.0 ) );
                //This line will print "Oh, that's why it's false."
                System.out.println( "Oh, that's why it's false." );
                //This line will print "How about some more."
                System.out.println( "How about some more." );
                //This line will print "Is it greater? true"
                System.out.println( "Is it greater? " + ( 5.0 >= -2.0 ) );
                //This line will print "Is it greater or equal? true"
                System.out.println( "Is it greater or equal? " + ( 5.0 >= -2.0 ) );
                //This line will print "Is it less or equal? false"
                System.out.println( "Is it less or equal? " + ( 5.0 <= -2.0 ) );
        }
}

    

Picture of the output

Assignment 11